package com.niubility.dao;


import com.niubility.entity.Message;
import com.niubility.vo.GoodLoad;
import com.niubility.vo.MessageShow;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


public interface MessageDao {


    public int Save(Message message);
    public int Delete(int mesId);

    public Message Select(int mesId);


    public List<Message> ByldAll(int mesMainid);
    public List<MessageShow> MessageSelect(@Param("mesMainid") int mesMainid,
                                           @Param("mark") int mark);
    public int DeleteAll(int mesMainid);
    public int MessageCount(Message message);


//    public int SelectByAssess(@Param("mesMainid") int mesMainid,@Param("artId")int artId);//张晨
    public int MessageInsert(Message message);//张晨
    public int MessageDelete(Message message);//张晨
    public int InsertMessage(Message message);//张家乐  徐松鹤
    public List<GoodLoad> GoodLoadById(Integer usersId);//张家乐

    public int SelectAssessMark(@Param("mesMainid")int mesMainid,          //张晨
                                @Param("mesSendid")int mesSendid,
                                @Param("artId")int artId);
    public int MessageDelete(@Param("mesMainid")int mesMainid,          //张晨
                             @Param("mesSendid")int mesSendid,
                             @Param("artId")int artId);
}
